clampViewPositionHorizontal
open fun clampViewPositionHorizontal(@NonNull child: @NonNull View, left: Int, dx: Int): Int(source)
Restrict the motion of the dragged child view along the horizontal axis. The default implementation does not allow horizontal motion; the extending class must override this method and provide the desired clamping.
Return
The new clamped position for left
Parameters
child
Child view being dragged
left
Attempted motion along the X axis
dx
Proposed change in position for left